<?php get_header(); ?>
<div class="main">
	<?php
	if ( have_posts() )
		the_post();
	?>
    <h1 class="page-title">
        <?php if ( is_day() ) : ?>
            <?php printf( __( 'Daily Archives: <span>%s</span>', 'vnh' ), get_the_date() ); ?>
        <?php elseif ( is_month() ) : ?>
            <?php printf( __( 'Monthly Archives: <span>%s</span>', 'vnh' ), get_the_date('F Y') ); ?>
        <?php elseif ( is_year() ) : ?>
            <?php printf( __( 'Yearly Archives: <span>%s</span>', 'vnh' ), get_the_date('Y') ); ?>
        <?php elseif ( is_category() ) : ?>
            <?php single_cat_title(); ?>
        <?php else : ?>
            <?php _e( 'Blog Archives', 'vnh' ); ?>
        <?php endif; ?>
    </h1>
    <?php
        rewind_posts();
        get_template_part( 'loop');
    ?>
</div><!--/main-->
<?php get_sidebar(1); ?> 
<?php get_sidebar(2); ?> 
<?php get_footer(); ?>

